package cn.com.ejiakanghu.vo;

import org.linlinjava.litemall.db.domain.LitemallOrder;

import java.math.BigDecimal;
import java.util.List;

public class OrderListVo {
    private Integer id;
    private String bigOrderId;
    private Integer orderType;
    private Double totalPrice;
    private List<SubOrderListVo> subOrderList;
    private BigDecimal creditLeaseMaxPrice;

    public OrderListVo() {
    }

    public OrderListVo(LitemallOrder litemallOrder) {
        this.id = litemallOrder.getId();
        this.bigOrderId = litemallOrder.getOrderSn();
        // 目前都是居家的订单，返回0即可
        this.orderType = 0;
        this.totalPrice = litemallOrder.getOrderPrice().doubleValue();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBigOrderId() {
        return bigOrderId;
    }

    public void setBigOrderId(String bigOrderId) {
        this.bigOrderId = bigOrderId;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public List<SubOrderListVo> getSubOrderList() {
        return subOrderList;
    }

    public void setSubOrderList(List<SubOrderListVo> subOrderList) {
        this.subOrderList = subOrderList;
    }

    public BigDecimal getCreditLeaseMaxPrice() {
        return creditLeaseMaxPrice;
    }

    public void setCreditLeaseMaxPrice(BigDecimal creditLeaseMaxPrice) {
        this.creditLeaseMaxPrice = creditLeaseMaxPrice;
    }
}
